﻿<%@ Page Title="Rooms" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" 
    CodeBehind="Rooms.aspx.cs" Inherits="HoneyBadgersOfficePlayer.Views.Rooms" %>

<%--<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">

</asp:Content>--%>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="clear hideSkiplink">
                <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                    <items>
                   
                        <asp:MenuItem NavigateUrl= "~/Views/Profile.aspx" Text="Profile" ToolTip="Profile"  ></asp:MenuItem>

                        <asp:MenuItem NavigateUrl= "~/Views/Upload.aspx" Text="Upload" ToolTip="Upload" ></asp:MenuItem>

                        <asp:MenuItem NavigateUrl= "~/Views/StreamDemo.aspx" Text="StreamDemo" ToolTip="StreamingDemo" ></asp:MenuItem>
                    </items>
                </asp:Menu>
            </div>
  <h1>Rooms</h1>
    <p>&nbsp;</p>
    <asp:button runat="server" Text="CREATE A ROOM" Font-Size="Large" Height="50px" 
        Width="200px" ID="btnCreate" onclick="btnCreate_Click" />   
    <div style ="height: auto; overflow:auto;" >
    <asp:GridView ID="GridView1" runat="server" Width="750px" AutoGenerateColumns="false" OnRowCommand="grd_RowCommand">

    <Columns>
                <asp:TemplateField HeaderText="Join or DIE!" ItemStyle-Width="75">
                   <ItemTemplate>
                     <asp:Button ID="btnJoinRM" Text="Join" runat="server" Width="75px" CommandName="Join" CommandArgument='<%#Eval("RoomName") %>'/>
                 </ItemTemplate>
                 </asp:TemplateField> 
                 <asp:BoundField DataField="RoomName" HeaderText="Room Name" Visible="true" ReadOnly="true" ItemStyle-Width="125"   ></asp:BoundField>
                 <asp:BoundField DataField="NumUsersInRoom" HeaderText="# of Users"  Visible="true" ReadOnly="true" ItemStyle-Width="50"  ></asp:BoundField>
                 <asp:BoundField DataField="MaxUsers"   HeaderText="Max Users"  Visible="true" ReadOnly="true" ItemStyle-Width="50"  ></asp:BoundField>
                 <asp:BoundField DataField="Private/Public"  HeaderText="Private/Public"  Visible="true" ReadOnly="true" ItemStyle-Width="100"  ></asp:BoundField>
                 
            </Columns>
            <RowStyle HorizontalAlign="Center" />
    </asp:GridView>
    </div>
</asp:Content>
